﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using Google.ProtocolBuffers;
using Google.ProtocolBuffers.Collections;
using Google.ProtocolBuffers.Descriptors;
using Google.ProtocolBuffers.FieldAccess;

namespace com.gexin.rp.sdk.dto
{
	// Token: 0x02000012 RID: 18
	[DebuggerNonUserCode]
	public sealed class PushListMessage : GeneratedMessage<PushListMessage, PushListMessage.Builder>
	{
		// Token: 0x06000197 RID: 407 RVA: 0x000049B9 File Offset: 0x00002BB9
		private PushListMessage()
		{
		}

		// Token: 0x170000A8 RID: 168
		// (get) Token: 0x06000198 RID: 408 RVA: 0x000049E9 File Offset: 0x00002BE9
		public static PushListMessage DefaultInstance
		{
			get
			{
				return PushListMessage.defaultInstance;
			}
		}

		// Token: 0x170000A9 RID: 169
		// (get) Token: 0x06000199 RID: 409 RVA: 0x000049F0 File Offset: 0x00002BF0
		public override PushListMessage DefaultInstanceForType
		{
			get
			{
				return PushListMessage.DefaultInstance;
			}
		}

		// Token: 0x170000AA RID: 170
		// (get) Token: 0x0600019A RID: 410 RVA: 0x00002579 File Offset: 0x00000779
		protected override PushListMessage ThisMessage
		{
			get
			{
				return this;
			}
		}

		// Token: 0x170000AB RID: 171
		// (get) Token: 0x0600019B RID: 411 RVA: 0x000049F7 File Offset: 0x00002BF7
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GtReq.internal__static_com_gexin_rp_sdk_dto_PushListMessage__Descriptor;
			}
		}

		// Token: 0x170000AC RID: 172
		// (get) Token: 0x0600019C RID: 412 RVA: 0x000049FE File Offset: 0x00002BFE
		protected override FieldAccessorTable<PushListMessage, PushListMessage.Builder> InternalFieldAccessors
		{
			get
			{
				return GtReq.internal__static_com_gexin_rp_sdk_dto_PushListMessage__FieldAccessorTable;
			}
		}

		// Token: 0x170000AD RID: 173
		// (get) Token: 0x0600019D RID: 413 RVA: 0x00004A05 File Offset: 0x00002C05
		public bool HasSeqId
		{
			get
			{
				return this.hasSeqId;
			}
		}

		// Token: 0x170000AE RID: 174
		// (get) Token: 0x0600019E RID: 414 RVA: 0x00004A0D File Offset: 0x00002C0D
		public string SeqId
		{
			get
			{
				return this.seqId_;
			}
		}

		// Token: 0x170000AF RID: 175
		// (get) Token: 0x0600019F RID: 415 RVA: 0x00004A15 File Offset: 0x00002C15
		public bool HasTaskId
		{
			get
			{
				return this.hasTaskId;
			}
		}

		// Token: 0x170000B0 RID: 176
		// (get) Token: 0x060001A0 RID: 416 RVA: 0x00004A1D File Offset: 0x00002C1D
		public string TaskId
		{
			get
			{
				return this.taskId_;
			}
		}

		// Token: 0x170000B1 RID: 177
		// (get) Token: 0x060001A1 RID: 417 RVA: 0x00004A25 File Offset: 0x00002C25
		public IList<Target> TargetsList
		{
			get
			{
				return this.targets_;
			}
		}

		// Token: 0x170000B2 RID: 178
		// (get) Token: 0x060001A2 RID: 418 RVA: 0x00004A2D File Offset: 0x00002C2D
		public int TargetsCount
		{
			get
			{
				return this.targets_.Count;
			}
		}

		// Token: 0x060001A3 RID: 419 RVA: 0x00004A3A File Offset: 0x00002C3A
		public Target GetTargets(int index)
		{
			return this.targets_[index];
		}

		// Token: 0x170000B3 RID: 179
		// (get) Token: 0x060001A4 RID: 420 RVA: 0x00004A48 File Offset: 0x00002C48
		public override bool IsInitialized
		{
			get
			{
				if (!this.hasSeqId)
				{
					return false;
				}
				if (!this.hasTaskId)
				{
					return false;
				}
				using (IEnumerator<Target> enumerator = this.TargetsList.GetEnumerator())
				{
					while (enumerator.MoveNext())
					{
						if (!enumerator.Current.IsInitialized)
						{
							return false;
						}
					}
				}
				return true;
			}
		}

		// Token: 0x060001A5 RID: 421 RVA: 0x00004AB0 File Offset: 0x00002CB0
		public override void WriteTo(ICodedOutputStream output)
		{
			this.CalcSerializedSize();
			string[] pushListMessageFieldNames = PushListMessage._pushListMessageFieldNames;
			if (this.hasSeqId)
			{
				output.WriteString(1, pushListMessageFieldNames[0], this.SeqId);
			}
			if (this.hasTaskId)
			{
				output.WriteString(2, pushListMessageFieldNames[2], this.TaskId);
			}
			if (this.targets_.Count > 0)
			{
				output.WriteMessageArray<Target>(3, pushListMessageFieldNames[1], this.targets_);
			}
			this.UnknownFields.WriteTo(output);
		}

		// Token: 0x170000B4 RID: 180
		// (get) Token: 0x060001A6 RID: 422 RVA: 0x00004B24 File Offset: 0x00002D24
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				return this.CalcSerializedSize();
			}
		}

		// Token: 0x060001A7 RID: 423 RVA: 0x00004B44 File Offset: 0x00002D44
		private int CalcSerializedSize()
		{
			int num = this.memoizedSerializedSize;
			if (num != -1)
			{
				return num;
			}
			num = 0;
			if (this.hasSeqId)
			{
				num += CodedOutputStream.ComputeStringSize(1, this.SeqId);
			}
			if (this.hasTaskId)
			{
				num += CodedOutputStream.ComputeStringSize(2, this.TaskId);
			}
			foreach (Target value in this.TargetsList)
			{
				num += CodedOutputStream.ComputeMessageSize(3, value);
			}
			num += this.UnknownFields.SerializedSize;
			this.memoizedSerializedSize = num;
			return num;
		}

		// Token: 0x060001A8 RID: 424 RVA: 0x00004BE8 File Offset: 0x00002DE8
		public static PushListMessage ParseFrom(ByteString data)
		{
			return PushListMessage.CreateBuilder().MergeFrom(data).BuildParsed();
		}

		// Token: 0x060001A9 RID: 425 RVA: 0x00004BFA File Offset: 0x00002DFA
		public static PushListMessage ParseFrom(ByteString data, ExtensionRegistry extensionRegistry)
		{
			return PushListMessage.CreateBuilder().MergeFrom(data, extensionRegistry).BuildParsed();
		}

		// Token: 0x060001AA RID: 426 RVA: 0x00004C0D File Offset: 0x00002E0D
		public static PushListMessage ParseFrom(byte[] data)
		{
			return PushListMessage.CreateBuilder().MergeFrom(data).BuildParsed();
		}

		// Token: 0x060001AB RID: 427 RVA: 0x00004C1F File Offset: 0x00002E1F
		public static PushListMessage ParseFrom(byte[] data, ExtensionRegistry extensionRegistry)
		{
			return PushListMessage.CreateBuilder().MergeFrom(data, extensionRegistry).BuildParsed();
		}

		// Token: 0x060001AC RID: 428 RVA: 0x00004C32 File Offset: 0x00002E32
		public static PushListMessage ParseFrom(Stream input)
		{
			return PushListMessage.CreateBuilder().MergeFrom(input).BuildParsed();
		}

		// Token: 0x060001AD RID: 429 RVA: 0x00004C44 File Offset: 0x00002E44
		public static PushListMessage ParseFrom(Stream input, ExtensionRegistry extensionRegistry)
		{
			return PushListMessage.CreateBuilder().MergeFrom(input, extensionRegistry).BuildParsed();
		}

		// Token: 0x060001AE RID: 430 RVA: 0x00004C57 File Offset: 0x00002E57
		public static PushListMessage ParseDelimitedFrom(Stream input)
		{
			return PushListMessage.CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
		}

		// Token: 0x060001AF RID: 431 RVA: 0x00004C69 File Offset: 0x00002E69
		public static PushListMessage ParseDelimitedFrom(Stream input, ExtensionRegistry extensionRegistry)
		{
			return PushListMessage.CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
		}

		// Token: 0x060001B0 RID: 432 RVA: 0x00004C7C File Offset: 0x00002E7C
		public static PushListMessage ParseFrom(ICodedInputStream input)
		{
			return PushListMessage.CreateBuilder().MergeFrom(input).BuildParsed();
		}

		// Token: 0x060001B1 RID: 433 RVA: 0x00004C8E File Offset: 0x00002E8E
		public static PushListMessage ParseFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
		{
			return PushListMessage.CreateBuilder().MergeFrom(input, extensionRegistry).BuildParsed();
		}

		// Token: 0x060001B2 RID: 434 RVA: 0x00004CA1 File Offset: 0x00002EA1
		private PushListMessage MakeReadOnly()
		{
			this.targets_.MakeReadOnly();
			return this;
		}

		// Token: 0x060001B3 RID: 435 RVA: 0x00004CAF File Offset: 0x00002EAF
		public static PushListMessage.Builder CreateBuilder()
		{
			return new PushListMessage.Builder();
		}

		// Token: 0x060001B4 RID: 436 RVA: 0x00004CB6 File Offset: 0x00002EB6
		public override PushListMessage.Builder ToBuilder()
		{
			return PushListMessage.CreateBuilder(this);
		}

		// Token: 0x060001B5 RID: 437 RVA: 0x00004CAF File Offset: 0x00002EAF
		public override PushListMessage.Builder CreateBuilderForType()
		{
			return new PushListMessage.Builder();
		}

		// Token: 0x060001B6 RID: 438 RVA: 0x00004CBE File Offset: 0x00002EBE
		public static PushListMessage.Builder CreateBuilder(PushListMessage prototype)
		{
			return new PushListMessage.Builder(prototype);
		}

		// Token: 0x060001B7 RID: 439 RVA: 0x00004CC8 File Offset: 0x00002EC8
		static PushListMessage()
		{
			FileDescriptor descriptor = GtReq.Descriptor;
		}

		// Token: 0x040000F7 RID: 247
		private static readonly PushListMessage defaultInstance = new PushListMessage().MakeReadOnly();

		// Token: 0x040000F8 RID: 248
		private static readonly string[] _pushListMessageFieldNames = new string[]
		{
			"seqId",
			"targets",
			"taskId"
		};

		// Token: 0x040000F9 RID: 249
		private static readonly uint[] _pushListMessageFieldTags = new uint[]
		{
			10u,
			26u,
			18u
		};

		// Token: 0x040000FA RID: 250
		public const int SeqIdFieldNumber = 1;

		// Token: 0x040000FB RID: 251
		private bool hasSeqId;

		// Token: 0x040000FC RID: 252
		private string seqId_ = "";

		// Token: 0x040000FD RID: 253
		public const int TaskIdFieldNumber = 2;

		// Token: 0x040000FE RID: 254
		private bool hasTaskId;

		// Token: 0x040000FF RID: 255
		private string taskId_ = "";

		// Token: 0x04000100 RID: 256
		public const int TargetsFieldNumber = 3;

		// Token: 0x04000101 RID: 257
		private PopsicleList<Target> targets_ = new PopsicleList<Target>();

		// Token: 0x04000102 RID: 258
		private int memoizedSerializedSize = -1;

		// Token: 0x0200005E RID: 94
		[DebuggerNonUserCode]
		public sealed class Builder : GeneratedBuilder<PushListMessage, PushListMessage.Builder>
		{
			// Token: 0x170002F5 RID: 757
			// (get) Token: 0x06000741 RID: 1857 RVA: 0x00002579 File Offset: 0x00000779
			protected override PushListMessage.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}

			// Token: 0x06000742 RID: 1858 RVA: 0x0001148E File Offset: 0x0000F68E
			public Builder()
			{
				this.result = PushListMessage.DefaultInstance;
				this.resultIsReadOnly = true;
			}

			// Token: 0x06000743 RID: 1859 RVA: 0x000114A8 File Offset: 0x0000F6A8
			internal Builder(PushListMessage cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}

			// Token: 0x06000744 RID: 1860 RVA: 0x000114C0 File Offset: 0x0000F6C0
			private PushListMessage PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					PushListMessage other = this.result;
					this.result = new PushListMessage();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}

			// Token: 0x170002F6 RID: 758
			// (get) Token: 0x06000745 RID: 1861 RVA: 0x000114FC File Offset: 0x0000F6FC
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}

			// Token: 0x170002F7 RID: 759
			// (get) Token: 0x06000746 RID: 1862 RVA: 0x00011509 File Offset: 0x0000F709
			protected override PushListMessage MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}

			// Token: 0x06000747 RID: 1863 RVA: 0x00011511 File Offset: 0x0000F711
			public override PushListMessage.Builder Clear()
			{
				this.result = PushListMessage.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}

			// Token: 0x06000748 RID: 1864 RVA: 0x00011526 File Offset: 0x0000F726
			public override PushListMessage.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new PushListMessage.Builder(this.result);
				}
				return new PushListMessage.Builder().MergeFrom(this.result);
			}

			// Token: 0x170002F8 RID: 760
			// (get) Token: 0x06000749 RID: 1865 RVA: 0x0001154C File Offset: 0x0000F74C
			public override MessageDescriptor DescriptorForType
			{
				get
				{
					return PushListMessage.Descriptor;
				}
			}

			// Token: 0x170002F9 RID: 761
			// (get) Token: 0x0600074A RID: 1866 RVA: 0x000049F0 File Offset: 0x00002BF0
			public override PushListMessage DefaultInstanceForType
			{
				get
				{
					return PushListMessage.DefaultInstance;
				}
			}

			// Token: 0x0600074B RID: 1867 RVA: 0x00011553 File Offset: 0x0000F753
			public override PushListMessage BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}

			// Token: 0x0600074C RID: 1868 RVA: 0x00011576 File Offset: 0x0000F776
			public override PushListMessage.Builder MergeFrom(IMessage other)
			{
				if (other is PushListMessage)
				{
					return this.MergeFrom((PushListMessage)other);
				}
				base.MergeFrom(other);
				return this;
			}

			// Token: 0x0600074D RID: 1869 RVA: 0x00011598 File Offset: 0x0000F798
			public override PushListMessage.Builder MergeFrom(PushListMessage other)
			{
				if (other == PushListMessage.DefaultInstance)
				{
					return this;
				}
				this.PrepareBuilder();
				if (other.HasSeqId)
				{
					this.SeqId = other.SeqId;
				}
				if (other.HasTaskId)
				{
					this.TaskId = other.TaskId;
				}
				if (other.targets_.Count != 0)
				{
					this.result.targets_.Add(other.targets_);
				}
				this.MergeUnknownFields(other.UnknownFields);
				return this;
			}

			// Token: 0x0600074E RID: 1870 RVA: 0x0001160F File Offset: 0x0000F80F
			public override PushListMessage.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}

			// Token: 0x0600074F RID: 1871 RVA: 0x00011620 File Offset: 0x0000F820
			public override PushListMessage.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				UnknownFieldSet.Builder builder = null;
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(PushListMessage._pushListMessageFieldNames, text, StringComparer.Ordinal);
						if (num2 < 0)
						{
							if (builder == null)
							{
								builder = UnknownFieldSet.CreateBuilder(this.UnknownFields);
							}
							this.ParseUnknownField(input, builder, extensionRegistry, num, text);
							continue;
						}
						num = PushListMessage._pushListMessageFieldTags[num2];
					}
					if (num <= 10u)
					{
						if (num == 0u)
						{
							throw InvalidProtocolBufferException.InvalidTag();
						}
						if (num == 10u)
						{
							this.result.hasSeqId = input.ReadString(ref this.result.seqId_);
							continue;
						}
					}
					else
					{
						if (num == 18u)
						{
							this.result.hasTaskId = input.ReadString(ref this.result.taskId_);
							continue;
						}
						if (num == 26u)
						{
							input.ReadMessageArray<Target>(num, text, this.result.targets_, Target.DefaultInstance, extensionRegistry);
							continue;
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						if (builder != null)
						{
							this.UnknownFields = builder.Build();
						}
						return this;
					}
					if (builder == null)
					{
						builder = UnknownFieldSet.CreateBuilder(this.UnknownFields);
					}
					this.ParseUnknownField(input, builder, extensionRegistry, num, text);
				}
				if (builder != null)
				{
					this.UnknownFields = builder.Build();
				}
				return this;
			}

			// Token: 0x170002FA RID: 762
			// (get) Token: 0x06000750 RID: 1872 RVA: 0x0001174B File Offset: 0x0000F94B
			public bool HasSeqId
			{
				get
				{
					return this.result.hasSeqId;
				}
			}

			// Token: 0x170002FB RID: 763
			// (get) Token: 0x06000751 RID: 1873 RVA: 0x00011758 File Offset: 0x0000F958
			// (set) Token: 0x06000752 RID: 1874 RVA: 0x00011765 File Offset: 0x0000F965
			public string SeqId
			{
				get
				{
					return this.result.SeqId;
				}
				set
				{
					this.SetSeqId(value);
				}
			}

			// Token: 0x06000753 RID: 1875 RVA: 0x0001176F File Offset: 0x0000F96F
			public PushListMessage.Builder SetSeqId(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasSeqId = true;
				this.result.seqId_ = value;
				return this;
			}

			// Token: 0x06000754 RID: 1876 RVA: 0x0001179C File Offset: 0x0000F99C
			public PushListMessage.Builder ClearSeqId()
			{
				this.PrepareBuilder();
				this.result.hasSeqId = false;
				this.result.seqId_ = "";
				return this;
			}

			// Token: 0x170002FC RID: 764
			// (get) Token: 0x06000755 RID: 1877 RVA: 0x000117C2 File Offset: 0x0000F9C2
			public bool HasTaskId
			{
				get
				{
					return this.result.hasTaskId;
				}
			}

			// Token: 0x170002FD RID: 765
			// (get) Token: 0x06000756 RID: 1878 RVA: 0x000117CF File Offset: 0x0000F9CF
			// (set) Token: 0x06000757 RID: 1879 RVA: 0x000117DC File Offset: 0x0000F9DC
			public string TaskId
			{
				get
				{
					return this.result.TaskId;
				}
				set
				{
					this.SetTaskId(value);
				}
			}

			// Token: 0x06000758 RID: 1880 RVA: 0x000117E6 File Offset: 0x0000F9E6
			public PushListMessage.Builder SetTaskId(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasTaskId = true;
				this.result.taskId_ = value;
				return this;
			}

			// Token: 0x06000759 RID: 1881 RVA: 0x00011813 File Offset: 0x0000FA13
			public PushListMessage.Builder ClearTaskId()
			{
				this.PrepareBuilder();
				this.result.hasTaskId = false;
				this.result.taskId_ = "";
				return this;
			}

			// Token: 0x170002FE RID: 766
			// (get) Token: 0x0600075A RID: 1882 RVA: 0x00011839 File Offset: 0x0000FA39
			public IPopsicleList<Target> TargetsList
			{
				get
				{
					return this.PrepareBuilder().targets_;
				}
			}

			// Token: 0x170002FF RID: 767
			// (get) Token: 0x0600075B RID: 1883 RVA: 0x00011846 File Offset: 0x0000FA46
			public int TargetsCount
			{
				get
				{
					return this.result.TargetsCount;
				}
			}

			// Token: 0x0600075C RID: 1884 RVA: 0x00011853 File Offset: 0x0000FA53
			public Target GetTargets(int index)
			{
				return this.result.GetTargets(index);
			}

			// Token: 0x0600075D RID: 1885 RVA: 0x00011861 File Offset: 0x0000FA61
			public PushListMessage.Builder SetTargets(int index, Target value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.targets_[index] = value;
				return this;
			}

			// Token: 0x0600075E RID: 1886 RVA: 0x00011888 File Offset: 0x0000FA88
			public PushListMessage.Builder SetTargets(int index, Target.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.targets_[index] = builderForValue.Build();
				return this;
			}

			// Token: 0x0600075F RID: 1887 RVA: 0x000118B4 File Offset: 0x0000FAB4
			public PushListMessage.Builder AddTargets(Target value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.targets_.Add(value);
				return this;
			}

			// Token: 0x06000760 RID: 1888 RVA: 0x000118DA File Offset: 0x0000FADA
			public PushListMessage.Builder AddTargets(Target.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.targets_.Add(builderForValue.Build());
				return this;
			}

			// Token: 0x06000761 RID: 1889 RVA: 0x00011905 File Offset: 0x0000FB05
			public PushListMessage.Builder AddRangeTargets(IEnumerable<Target> values)
			{
				this.PrepareBuilder();
				this.result.targets_.Add(values);
				return this;
			}

			// Token: 0x06000762 RID: 1890 RVA: 0x00011920 File Offset: 0x0000FB20
			public PushListMessage.Builder ClearTargets()
			{
				this.PrepareBuilder();
				this.result.targets_.Clear();
				return this;
			}

			// Token: 0x04000353 RID: 851
			private bool resultIsReadOnly;

			// Token: 0x04000354 RID: 852
			private PushListMessage result;
		}
	}
}
